using System;
using System.Collections.Generic;

namespace ERIMobileL.oo
{
    public class Event<V>
    {
        private string code;
        private Person actor;
        private Dictionary<string, V> items;
        private DateTime timestamp;

        public Event()
        {
            items=new Dictionary<string, V>();
            //timestamp = null;
        }

        public string Code
        {
            get { return code; }
            set { code = value; }
        }

        public Person Actor
        {
            get { return actor; }
            set { actor = value; }
        }

        public Dictionary<string, V> Items
        {
            get { return items; }
        }

        public DateTime Timestamp
        {
            get { return timestamp; }
        }

        public void setNow()
        {
            timestamp = DateTime.Now;
        }
    }
}